package cn.cdeden.knowledge.utils;

import cn.cdeden.knowledge.domain.FilesLabelRecord;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ProjectName : ecm_svn
 * @Package : com.cdyd.ecm.modules.label.utils
 * @ClassName : FilesLabelUtils
 * @Author : Yu.
 * @Description : // 删除标签记录方法
 * @Date : 2024/4/21 14:00
 * @Version : 1.0
 */
@RequiredArgsConstructor
@Component
@Slf4j
public class FilesLabelUtils {


//    private final FilesLabelRecordMapper recordMapper;
//
//
//    private final FilesLabelMapper labelMapper;




    public void deleteRecordTeam(String fileId,String teamId){
        try {
            LambdaQueryWrapper<FilesLabelRecord> wrapper = new LambdaQueryWrapper<>();
            wrapper.eq(FilesLabelRecord::getFileId,fileId)
                    .eq(FilesLabelRecord::getFileType,"team")
                    .eq(FilesLabelRecord::getTeamId,teamId);
        }catch (Exception e){
            log.error("删除标签记录失败",e);
        }

    }


}
